package com.woniuxy.third.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Course {
    private int id;
    private String name;
    private BigDecimal price;
    private String free;
    private int visitednum;
    private int praisednum;
    private int teacherid;
    private int schoolid;
    private String description;
    private String goal;
    private int coursetypeid;
    private Date start;
    private Date end;
    private Date cstart;
    private Date cend;
    private int referenceid;
    private int assessmentid;
    private boolean live;
    private int chapterid;
    private String image;   //图片
    private Teacher teacher;    //将课程对应的老师封装到课程里面
    private List<Chapter> chapters;     //将章节封装到课程里面
}
